import { createContext } from 'react';
import { MapTopic, SmartMapProps } from '../typings/index';



interface SmartMapCommonState {
    zoom?: number
    center?: number[]
    layerManageDrawerOpen?: boolean
    setLayerManageDrawerOpen?: Function
    checkedThirdPartyLayerList: MapTopic[],
    handleSetCheckedThirdPartyLayerList: Function
    handleSetMapZoom: Function
    handleResetMapStatus: Function
}

const SmartMapProvider = createContext<SmartMapProps & SmartMapCommonState>(null);

export default SmartMapProvider;